package Collestions_demo;


public class Iterator_for {
    public static void main(String[] args) {
        String[] array = {"one","two","three","four","five"};
        for (int i = 0;i<array.length;i++){
            String str = array[i];
            System.out.println(str);
        }
        for (String ss:array){
            System.out.println(ss);
            if ("two".equals(ss)){
                System.out.println("contain");
            }
        }

        for(String st :array){
            System.out.println(st);
        }
    }
}
